package com.iflytek.day05;


import java.util.Random;

public class _06_Random {
    public static void main(String[] args) {
        //2.创建对象
        Random r = new Random();
        //3.生成随机数
        int number = r.nextInt(2);//包左不包右，包头不包尾
        //0 ~ 99
        System.out.println(number);

    }
}
